package com.wx.generic.inter;

/**
 * 继承泛型
 * @author wangxun
 * @version 1.0
 * @description: TODO
 * @date 2021/1/20 4:37 下午
 */
public class GenericImpl2<T> implements GenericInterface<T>{
    private T obj;
    @Override
    public boolean set(T t) {
        this.obj = t;
        return true;
    }

    @Override
    public T getNext() {
        return this.obj;
    }

    @Override
    public <E> E show(E e) {
        System.out.println(e);
        return e;
    }
}
